﻿Imports System.Web.UI
Imports SISSAT.BusinessLayer.DomainModels

Namespace Pages.Print
    Public Class ReportCard
        Inherits Page

        Public Function SubHeaderMessage(value As String) As String
            Dim delimiter() As Char = {CType("|", Char)}
            Dim selectedValue As String() = value.Split(delimiter)
            Dim schoolYear As String = selectedValue(0)
            Dim semester As Semesters = CType([Enum].Parse(GetType(Semesters), selectedValue(1), True), Semesters)

            Return String.Format("School Year {0}/{1} Semester", schoolYear, semester)
        End Function

        Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

        End Sub

    End Class
End Namespace
